package com.example.broadcastshareprefence;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyReceiver_2 extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "我是广播接收器1，我已接受到广播", Toast.LENGTH_LONG).show();
        abortBroadcast();
    }
}
